import 'amfe-flexible'
import 'normalize.css'
import './assets/scss/base.scss'
import Vue from 'vue'
import App from './App'
import { router } from './router'
import store from './store'

import {
  Button,
  Notify,
  Row,
  Col,
  Toast,
  Form,
  Field,
  Divider,
  Swipe,
  SwipeItem,
  Lazyload,
  Image,
  NoticeBar,
  NavBar,
  Tag,
  DropdownMenu,
  DropdownItem,
  List,
  PullRefresh,
  Switch,
  SwitchCell,
  Checkbox,
  CheckboxGroup,
  Cell,
  CellGroup,
  Search,
  Calendar,
  Icon,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  Radio,
  RadioGroup,
} from 'vant'
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(Calendar)
Vue.use(Search)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(SwitchCell)
Vue.use(Switch)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Notify)
Vue.use(Row)
Vue.use(Col)
Vue.use(Button)
Vue.use(Toast)
Vue.use(Form)
Vue.use(Field)
Vue.use(Divider)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Lazyload)
Vue.use(Image)
Vue.use(NoticeBar)
Vue.use(NavBar)
Vue.use(Tag)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Radio)
Vue.use(RadioGroup)

import request from './utils/request'
Vue.prototype.$axios = request
const call = tel => {
  window.location.href = `tel:${tel}`
}
Vue.prototype.$call = call

import './icons'
// 配置信息
import config from './config'
Vue.prototype.$config = config
new Vue({
  router,
  store,
  el: '#app',
  render: h => h(App),
})
